<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>Box.getWidth</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="Box.htm">Box</a>.<wbr>getWidth</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public int getWidth()
</div>
<p class="heading2">Description</p>
<div class="content">
Gets the width of the box.<br><br>
In some cases, the width of a box may be dynamically determined. An example is the width of an <a href="LegendBox.htm">LegendBox</a>. For these cases, the width is undefined until the legend box or the entire chart has been laid out (using <a href="BaseChart.layout.htm">BaseChart.layout</a> or <a href="BaseChart.layoutLegend.htm">BaseChart.layoutLegend</a>), or the chart image has been drawn (eg. using <a href="BaseChart.makeSession.htm">BaseChart.makeSession</a>, <a href="BaseChart.makeChart.htm">BaseChart.makeChart</a> or <a href="BaseChart.makeChart2.htm">BaseChart.makeChart2</a>).
</div>
<p class="heading2">Arguments</p>
<div class="content">None</div>
<p class="heading2">Return Value</p>
<div class="content">
The width of the box in pixels.
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
